home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / text / edit / tecoc-146.lha / tstpw.tec < prev    next >
Text File  |  1991-07-05  |  5KB  |  415 lines

  1. 
  2.  
  3.     Test the PW command.  This macro,  in conjunction with the TSTY.TEC
  4. macro,  test basic file input and output.  The P, N, _ and A commands are
  5. special cases of basic file input and output,  and should be tested after
  6. the PW and Y commands.
  7.     This macro tests the PW command with empty edit buffers, full ones
  8. with the gap at the beginning, middle and end,  and with lines containing
  9. CR/LF, ESC/CR/LF, FF, and VT, and empty lines, with the gap at various places.
  10.     If this macro executes without error,  the only thing that can be said
  11. is that the file output code hasn't bombed,  not that file output works.
  12. You should run the TSTY.TEC macro after running this one.  TSTY.TEC will
  13. read the files output by this macro and verify that the contents are correct.
  14. Of course,  that macro tests file input,  so if it fails,  the error could be
  15. in either file input or file output code.
  16.  
  17.     Please strike any key to continue,  or ^A to exit
  18.  
  19.     Test file output commands.
  20.  
  21. 
  22.  
  23.     Test output when edit buffer is empty 
  24. 
  25. ewE1.TpwefewE2.TpwefewE3.Tpwpwpwef
  26.  
  27.     Test buffer full (contains "test"),  CP at beginning of buffer
  28. 
  29. itestj
  30. ewTB1.Tpwef
  31.  
  32. ewTB2.Tpwef
  33.  
  34. ewTB3.Tpwpwpwef
  35.  
  36. ewTB4.Thpwef
  37.  
  38. ewTB5.Thpef
  39.  
  40. ewTB6.T,3pef
  41.  
  42. ewTB7.T,3pwef
  43.  
  44.     Test buffer full (contains "test"),  CP at middle of buffer
  45. 
  46. 2c
  47. ewTM1.Tpwef
  48.  
  49. ewTM2.Tpwef
  50.  
  51. ewTM3.Tpwpwpwef
  52.  
  53. ewTM4.Thpwef
  54.  
  55. ewTM5.Thpef
  56.  
  57. ewTM6.T,3pef
  58.  
  59. ewTM7.T,3pwef
  60.  
  61.  
  62.     Test buffer full (contains "test"),  CP at end of buffer
  63. 
  64. zj
  65. ewTE1.Tpwef
  66.  
  67. ewTE2.Tpwef
  68.  
  69. ewTE3.Tpwpwpwef
  70.  
  71. ewTE4.Thpwef
  72.  
  73. ewTE5.Thpef
  74.  
  75. ewTE6.T,3pef
  76.  
  77. ewTE7.T,3pwef
  78.  
  79.  
  80.     Test buffer containing CR/LFs,  CP at beginning of buffer
  81. 
  82. hkitest1
  83. test2
  84. test3
  85. j
  86. ewCB1.Tpwef
  87.  
  88. ewCB2.Tpwef
  89.  
  90. ewCB3.Tpwpwpwef
  91.  
  92. ewCB4.Thpwef
  93.  
  94. ewCB5.Thpef
  95.  
  96. ewCB6.T,3pef
  97.  
  98. ewCB7.T,3pwef
  99.  
  100.     Test buffer containing CR/LFs,  CP before a CR
  101. 
  102. s1
  103.  
  104. ewCBC1.Tpwef
  105.  
  106. ewCBC2.Tpwef
  107.  
  108. ewCBC3.Tpwpwpwef
  109.  
  110. ewCBC4.Thpwef
  111.  
  112. ewCBC5.Thpef
  113.  
  114. ewCBC6.T,3pef
  115.  
  116. ewCBC7.T,3pwef
  117.  
  118.     Test buffer containing CR/LFs,  CP before an LF
  119. 
  120. c
  121. ewCBL1.Tpwef
  122.  
  123. ewCBL2.Tpwef
  124.  
  125. ewCBL3.Tpwpwpwef
  126.  
  127. ewCBL4.Thpwef
  128.  
  129. ewCBL5.Thpef
  130.  
  131. ewCBL6.T,3pef
  132.  
  133. ewCBL7.T,3pwef
  134.  
  135.     Test buffer containing CR/LFs,  CP after an LF
  136. 
  137. c
  138. ewCAL1.Tpwef
  139.  
  140. ewCAL2.Tpwef
  141.  
  142. ewCAL3.Tpwpwpwef
  143.  
  144. ewCAL4.Thpwef
  145.  
  146. ewCAL5.Thpef
  147.  
  148. ewCAL6.T,3pef
  149.  
  150. ewCAL7.T,3pwef
  151.  
  152.     Test buffer containing CR/LFs,  CP at end of buffer
  153. 
  154. zj
  155. ewCE1.Tpwef
  156.  
  157. ewCE2.Tpwef
  158.  
  159. ewCE3.Tpwpwpwef
  160.  
  161. ewCE4.Thpwef
  162.  
  163. ewCE5.Thpef
  164.  
  165. ewCE6.T,3pef
  166.  
  167. ewCE7.T,3pwef
  168.  
  169.     Test buffer containing ESC/CR/LFs,  CP at beginning of buffer
  170. 
  171. hk@i/test1test2test3/j
  172. ewDB1.Tpwef
  173.  
  174. ewDB2.Tpwef
  175.  
  176. ewDB3.Tpwpwpwef
  177.  
  178. ewDB4.Thpwef
  179.  
  180. ewDB5.Thpef
  181.  
  182. ewDB6.T,3pef
  183.  
  184. ewDB7.T,3pwef
  185.  
  186.     Test buffer containing ESC/CR/LFs,  CP before an ESC
  187. 
  188. s1
  189.  
  190. ewDBD1.Tpwef
  191.  
  192. ewDBD2.Tpwef
  193.  
  194. ewDBD3.Tpwpwpwef
  195.  
  196. ewDBD4.Thpwef
  197.  
  198. ewDBD5.Thpef
  199.  
  200. ewDBD6.T,3pef
  201.  
  202. ewDBD7.T,3pwef
  203.  
  204.     Test buffer containing ESC/CR/LFs,  CP before a CR
  205. 
  206. c
  207. ewDBC1.Tpwef
  208.  
  209. ewDBC2.Tpwef
  210.  
  211. ewDBC3.Tpwpwpwef
  212.  
  213. ewDBC4.Thpwef
  214.  
  215. ewDBC5.Thpef
  216.  
  217. ewDBC6.T,3pef
  218.  
  219. ewDBC7.T,3pwef
  220.  
  221.     Test buffer containing ESC/CR/LFs,  CP before an LF
  222. 
  223. c
  224. ewDBL1.Tpwef
  225.  
  226. ewDBL2.Tpwef
  227.  
  228. ewDBL3.Tpwpwpwef
  229.  
  230. ewDBL4.Thpwef
  231.  
  232. ewDBL5.Thpef
  233.  
  234. ewDBL6.T,3pef
  235.  
  236. ewDBL7.T,3pwef
  237.  
  238.     Test buffer containing ESC/CR/LFs,  CP after an LF
  239. 
  240. c
  241. ewDAL1.Tpwef
  242.  
  243. ewDAL2.Tpwef
  244.  
  245. ewDAL3.Tpwpwpwef
  246.  
  247. ewDAL4.Thpwef
  248.  
  249. ewDAL5.Thpef
  250.  
  251. ewDAL6.T,3pef
  252.  
  253. ewDAL7.T,3pwef
  254.  
  255.     Test buffer containing ESC/CR/LFs,  CP at end of buffer
  256. 
  257. zj
  258. ewDE1.Tpwef
  259.  
  260. ewDE2.Tpwef
  261.  
  262. ewDE3.Tpwpwpwef
  263.  
  264. ewDE4.Thpwef
  265.  
  266. ewDE5.Thpef
  267.  
  268. ewDE6.T,3pef
  269.  
  270. ewDE7.T,3pwef
  271.  
  272.     Test buffer containing FFs,  CP at beginning of buffer
  273. 
  274. hkitest1iitest2
  275. j
  276. ewFB1.Tpwef
  277.  
  278. ewFB2.Tpwef
  279.  
  280. ewFB3.Tpwpwpwef
  281.  
  282. ewFB4.Thpwef
  283.  
  284. ewFB5.Thpef
  285.  
  286. ewFB6.T,3pef
  287.  
  288. ewFB7.T,3pwef
  289.  
  290.     Test buffer containing FFs,  CP before an FF
  291. 
  292. s1
  293.  
  294. ewFBF1.Tpwef
  295.  
  296. ewFBF2.Tpwef
  297.  
  298. ewFBF3.Tpwpwpwef
  299.  
  300. ewFBF4.Thpwef
  301.  
  302. ewFBF5.Thpef
  303.  
  304. ewFBF6.T,3pef
  305.  
  306. ewFBF7.T,3pwef
  307.  
  308.     Test buffer containing FFs,  CP after an FF
  309. 
  310. c
  311. ewFAF1.Tpwef
  312.  
  313. ewFAF2.Tpwef
  314.  
  315. ewFAF3.Tpwpwpwef
  316.  
  317. ewFAF4.Thpwef
  318.  
  319. ewFAF5.Thpef
  320.  
  321. ewFAF6.T,3pef
  322.  
  323. ewFAF7.T,3pwef
  324.  
  325.     Test buffer containing FFs,  CP at end of buffer
  326. 
  327. zj
  328. ewFE1.Tpwef
  329.  
  330. ewFE2.Tpwef
  331.  
  332. ewFE3.Tpwpwpwef
  333.  
  334. ewFE4.Thpwef
  335.  
  336. ewFE5.Thpef
  337.  
  338. ewFE6.T,3pef
  339.  
  340. ewFE7.T,3pwef
  341.  
  342.     Test buffer containing VTs,  CP at beginning of buffer
  343. 
  344. hkitest1itest2
  345. j
  346. ewVB1.Tpwef
  347.  
  348. ewVB2.Tpwef
  349.  
  350. ewVB3.Tpwpwpwef
  351.  
  352. ewVB4.Thpwef
  353.  
  354. ewVB5.Thpef
  355.  
  356. ewVB6.T,3pef
  357.  
  358. ewVB7.T,3pwef
  359.  
  360.     Test buffer containing VTs,  CP before a VT
  361. 
  362. s1
  363.  
  364. ewVBV1.Tpwef
  365.  
  366. ewVBV2.Tpwef
  367.  
  368. ewVBV3.Tpwpwpwef
  369.  
  370. ewVBV4.Thpwef
  371.  
  372. ewVBV5.Thpef
  373.  
  374. ewVBV6.T,3pef
  375.  
  376. ewVBV7.T,3pwef
  377.  
  378.     Test buffer containing VTs,  CP after a VT
  379. 
  380. c
  381. ewVAV1.Tpwef
  382.  
  383. ewVAV2.Tpwef
  384.  
  385. ewVAV3.Tpwpwpwef
  386.  
  387. ewVAV4.Thpwef
  388.  
  389. ewVAV5.Thpef
  390.  
  391. ewVAV6.T,3pef
  392.  
  393. ewVAV7.T,3pwef
  394.  
  395.     Test buffer containing VTs,  CP at end of buffer
  396. 
  397. zj
  398. ewVE1.Tpwef
  399.  
  400. ewVE2.Tpwef
  401.  
  402. ewVE3.Tpwpwpwef
  403.  
  404. ewVE4.Thpwef
  405.  
  406. ewVE5.Thpef
  407.  
  408. ewVE6.T,3pef
  409.  
  410. ewVE7.T,3pwef
  411.  
  412. Done.
  413. 
  414. hkex
  415.